<template>
  <div>
    <!-- 头部导航  -->
    <van-nav-bar
      title="订单中心"
      left-text="返回"
      left-arrow
      @click-left="$router.go(-1)"
    />

    <van-contact-card type="add" @click="onAdd" />

    <van-submit-bar :price="price" button-text="提交订单" @submit="onSubmit" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      price: 0,
    };
  },
  methods: {
    onAdd() {
      this.$router.push("/address");
    },
    onSubmit() {
      console.log("提交订单");
    },
  },
};
</script>

<style lang="scss" scoped></style>
